# 使用Nginx Alpine作为基础镜像
FROM nginx:alpine

# 复制本地构建结果到Nginx服务目录
COPY dist/ /usr/share/nginx/html/

# 复制Nginx配置
COPY nginx.conf /etc/nginx/conf.d/default.conf

# 暴露80端口
EXPOSE 80

# 启动Nginx
CMD ["nginx", "-g", "daemon off;"]